//
//  ZFileCacheManager.h
//  WeClubs
//
//  Created by KevinWang on 17/3/27.
//  Copyright © 2017年 kevin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZFileCacheManager : NSObject
/**
 *  把对象归档存到沙盒里Cache路径下
 */
+ (BOOL)saveObject:(id)object byFileName:(NSString*)fileName;

/**
 *  通过文件名从沙盒中找到归档的对象
 */
+ (id)getObjectByFileName:(NSString*)fileName;

/**
 *  根据文件名删除沙盒中的归档对象
 */
+ (void)removeObjectByFileName:(NSString*)fileName;


#pragma mark - * NSUserDefault * * * * *

/**
 *  存储value
 */
+(void)saveLocalStoreForValue:(id)value atKey:(NSString *)key;
/**
 *  获取value
 */
+(id)getValueLocalStoreForKey:(NSString *)key;
/**
 *  删除value
 */
+(void)DeleteValueLocalStoreForKey:(NSString *)key;

@end
